<?php
require_once '../header.php';
?>
<div>
    <h1 id="Contentitle">Jornada</h1><br />
</div>
<div>
    <div>
        <form  id="formJornada" action="http://localhost/Matematrix/admin/jornada.php" method="post">
            <div class="linha">
                <label class="formLabelEsq">Problema para jornada</label>
                <select id="comboboxProblemas" name="problema">
                    <?php
                        while ($row = $problemas->fetch_object()) {
                            echo "<option value=\"$row->id\">$row->titulo</option>\n";
                        }
                    ?>
                </select>    
            </div>
            <div class="linha">
                <label class="formLabelEsq">Data de Inicio</label>
                <input class="formInput" type="date" name="dataInicio"/>
                <label class="formLabelDir">Data de Fim</label>
                <input class="formInput" type="date" name="dataFim"/>
            </div>
            <div class="linha">
                <div id="linhaBotoes">
                    <input id="submeter" type="submit" value="Registar"/>                 
                    <input id="cancelar" type="reset" value="Cancelar"/>
                </div>
            </div>
        </form>
    </div> 
</div>
<?php
require_once '../footer.php';
?>
